package com.ccc.spring01.controller;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;



@RestController
public class HealthyController {

    Logger logger = LogManager.getLogger(LogManager.ROOT_LOGGER_NAME);

    @RequestMapping("/healthy")
    public String sayHello() {

        logger.info("请求了healthy");
        return "healthy hahahaha";
    }
}